package io.gitee.zhangbinhub.admin.po

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank

/**
 * @author zhang by 14/06/2019
 * @since JDK 11
 */
@Schema(description = "启动流程参数")
data class ProcessStartPo(
    @Schema(description = "流程定义键", requiredMode = Schema.RequiredMode.REQUIRED)
    @get:NotBlank(message = "流程定义键不能为空")
    var processDefinitionKey: String? = null,

    @Schema(description = "业务键", requiredMode = Schema.RequiredMode.REQUIRED)
    @get:NotBlank(message = "业务键不能为空")
    var businessKey: String? = null,

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @get:NotBlank(message = "标题不能为空")
    var title: String? = null,

    @Schema(description = "流程描述", requiredMode = Schema.RequiredMode.REQUIRED)
    @get:NotBlank(message = "流程描述不能为空")
    var description: String? = null,

    @Schema(description = "自定义参数")
    var params: MutableMap<String, Any> = mutableMapOf()
)
